package com.aiss.ws.activity;

import android.widget.TextView;

import com.aiss.ws.Entity.CurseItem;
import com.aiss.ws.R;
import com.aiss.ws.utils.Command;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;
import org.androidannotations.annotations.ViewById;

/**
 * Created by chenqiang on 16/5/17.
 */
@EActivity(R.layout.activity_turedetail)
public class TureDetailActivity extends BaseActivity {

    @ViewById(R.id.title)
    TextView title_tv;

    @Extra("")
    String idx;

    @Extra("")
    String ftype;

    @Extra
    int is_true;


    @Click(R.id.back)
    void setBack(){
        finish();
    }

    @Extra
    CurseItem item;


    @AfterViews
    void init(){
        if(is_true==2){
            title_tv.setText("押题课程");
        }else{
            title_tv.setText("真题课程");
        }

    }

    /**
     * 练习
     */
    @Click(R.id.information_rel1)
    void information_rel1(){
        SuiteActivity_.intent(this).extra("idx",idx).extra("is_true",is_true).extra("type", Command.SUITE[0]).start();
    }

    /**
     * 测试
     */
    @Click(R.id.information_rel2)
    void information_rel2(){
        SuiteActivity_.intent(this).extra("idx",idx).extra("is_true",is_true).extra("type", Command.SUITE[1]).start();
    }

    /**
     * 标注
     */
    @Click(R.id.information_rel3)
    void information_rel3(){
        AnswerActivity_.intent(this).extra("idx",idx).extra("type",Command.SUITE[2]).extra("gtype",idx).extra("is_true",is_true).start();
    }

    /**
     * 错题
     */
    @Click(R.id.information_rel4)
    void information_rel4(){
        AnswerActivity_.intent(this).extra("idx",idx).extra("type",Command.SUITE[3]).extra("gtype",idx).extra("is_true",is_true).start();

    }




}
